<include file="common/header" />
<!--幻灯-->
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <volist name="image_list" id="vo" key="k">
            <li data-target="#carousel-example-generic" data-slide-to="{$k}" <if condition="( $k eq 1)"> class="active"</if>></li>
        </volist>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner text-center" role="listbox">
        <volist name="index_image" id="vo" key="k" >
            <div class="item <if condition="( $k eq 1)">active</if>">
            <a href="{$vo.url}" title="{$vo.title}">
                <div style="background-color: #040404">
                    <img src="{$vo.image}" class="img-responsive" alt="{$vo.title}" style="margin: auto;">
                </div>
            </a>
            </div>
    </volist>
</div>

<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left"></span>
    <span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right"></span>
    <span class="sr-only">Next</span>
</a>
</div>

<div class="main-container">
    <div class="container mt20">
        <div class="content">
            <div class="row visible-lg">
                <div class="col-xs-8">
                    <div class="clearfix mb25" >
                        <div class="btn-pre">
                        </div>
                        <div class="wrap-cou">
                            <ul class="index-menu-nav clearfix" id="deal_cate_list">
                                <volist id="vo" name="deal_cate_list">
                                    <li>
                                        <a href="/list/?id={$vo.id}">
                                            <img src="{$vo.image}"/>
                                            <span class="title">{$vo.name}</span>
                                        </a>
                                    </li>
                                </volist>
                            </ul>
                        </div>
                        <div class="btn-next">
                        </div>
                    </div>
                </div>
                <div class="col-xs-4" id="sel-dropdown">
                    <div class="btn-group">
                        <button type="button" class="btn btn-gray">全部</button>
                        <button type="button" class="btn dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <span class="caret"></span>
                            <span class="sr-only"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <volist id="vo" name="deal_cate_list">
                                <li>
                                <a href="/list/?id={$vo.id}<notempty name="status">&status={$status}</notempty><notempty name="type">&type={$type}</notempty>">{$vo.name}</a>
                                </li>
                            </volist>
                        </ul>
                    </div>
                    <div class="btn-group">
                        <button type="button" class="btn btn-gray">{$status_text}</button>
                        <button type="button" class="btn dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <span class="caret"></span>
                            <span class="sr-only"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="/index.html?status=all">全部</a></li>
                            <li><a href="/index.html?status=doing<notempty name="type">&type={$type}</notempty>">众筹中</a></li>
                            <li><a href="/index.html?status=success<notempty name="type">&type={$type}</notempty>">众筹成功</a></li>
                        </ul>
                    </div>
                    <div class="btn-group">
                        <button type="button" class="btn btn-gray">{$time_text}</button>
                        <button type="button" class="btn dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                            <span class="caret"></span>
                            <span class="sr-only"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <if condition="($status neq 'success')">
                            <li><a href="/index.html?type=new<notempty name="status">&status={$status}</notempty>">最新上线</a></li>
                            <li><a href="/index.html?type=need<notempty name="status">&status={$status}</notempty>">即将下线</a></li>
                            </if>
                            <li><a href="/index.html?type=high<notempty name="status">&status={$status}</notempty>">金额最高</a></li>
                            <li><a href="/index.html?type=like<notempty name="status">&status={$status}</notempty>">最受欢迎</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div id="list">
                <ul>
                    <volist name="deal_list" id="vo" key="k">
                        <li class="row">
                            <div class="hidden-xs">
                                <a href="/deal/show/?id={$vo.id}"><img src="{$vo.image}" class="col-xs-7 title="{$vo.name}"/></a>
                            </div>
                            <div class="col-sm-5" onclick="window.location.href='/deal/show/?id={$vo.id}'">
                                <div class="wrap-item">
                                    <a href="/deal/show/?id={$vo.id}"><h1 class="title mb10">{$vo.name}</h1></a>
                                    <div class="row index-data">
                                        <div class="col-xs-6 text-center">
                                            <div class="money" title="￥{$vo.limit_price}">￥{$vo.limit_price}</div>
                                            <p class="t">筹集资金</p>
                                        </div>
                                        <div class="col-xs-3">
                                            <div class="wrap-pie-apr" id="pie{$k}" data-apr="{$vo.percent}%">
                                            </div>
                                            <p class="ti2">已筹资金</p>
                                        </div>
                                        <div class="col-xs-3">
                                            <div class="wrap-pie-day" id="pie{$k}1" data-apr="{$vo.remain_days_percent}%" data-day="{$vo.remain_days}">
                                            </div>
                                            <p class="ti2">剩余时间</p>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </li>
                    </volist>
                </ul>
                <div class="page mt30">
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>
<include file="common/footer" />